# coding: utf-8
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QLabel
from qfluentwidgets import setFont


class TagLabel(QLabel):
    def __init__(self, parent=None):
        super().__init__(parent)
        qss = """
        TagLabel {
            background-color: rgba(0, 0, 0, 0.3);
            border: none;
            color: #FFFFFF;
            border-radius: 5px;
            padding: 6px 6px;
        }
        """
        self.setStyleSheet(qss)
        setFont(self, 12)
        self.setAlignment(Qt.AlignmentFlag.AlignCenter)
